package com.ybb.vue.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author ybb
 * @version 1.0
 * @Description TODO
 * @Date 2023/4/1 11:02
 */
@Data
public class AnnIndexVo {
    private Long id;

    /**
     * 公告标题
     */
    private String title;

    /**
     * 公告内容
     */
    private String ancementContent;

    /**
     * 发布者
     */
    private String publisher;

    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 消息通知类型{A:公告消息,B:告警消息}
     *
     * @return
     */
    private String returnMessageType;

    @Override
    public String toString() {
        return "AnnIndexVo{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", ancementContent='" + ancementContent + '\'' +
                ", publisher='" + publisher + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                '}';
    }
}
